package com.geo.geoProject.client.tousLesProgrammes.profil;

import com.geo.geoProject.client.application.IPCMessage;
import com.geo.geoProject.client.application.ListeDesApplications;
import com.geo.geoProject.client.application.MessageInterProgramme;
import com.geo.geoProject.client.tousLesProgrammes.carte2d.Carte2d;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.ClickEvent;

public class ProfilPanel extends VerticalPanel {
	public ProfilPanel() {
		
		Button btnHello = new Button("hello");
		btnHello.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
				MessageInterProgramme m = new MessageInterProgramme() ;
				m.idRreceiver = ListeDesApplications.Carte2d ;
				m.idMsgType = Carte2d.MSG_TYPE_ZOOMPLUS ;
				IPCMessage.get().transmettre(m) ;
			}
		});
		add(btnHello);
	}

}
